package com.team11.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author pjc
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("clock_information")
@ApiModel(value="ClockInformation对象", description="")
public class ClockInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "打卡id")
    @TableId(value = "clock_id", type = IdType.AUTO)
    private Integer clockId;

    @ApiModelProperty(value = "学号(学生id)")
    @TableField("s_id")
    private Integer sId;

    @ApiModelProperty(value = "打卡日期")
    @TableField("clock_date")
    private LocalDate clockDate;

    @ApiModelProperty(value = "打卡时间")
    @TableField("clock_time")
    private LocalTime clockTime;

    @ApiModelProperty(value = "打卡设备")
    @TableField("clock_device")
    private String clockDevice;

    @ApiModelProperty(value = "学号")
    @TableField(exist = false)
    private Integer sNumber;

    @ApiModelProperty(value = "学生姓名")
    @TableField(exist = false)
    private String sName;
}
